﻿package de.gameduell.framework.modules.event
{
	import de.gameduell.net.src.communication.ServerMessageEvent;
	
	/**
	 * end signal, a round or and the whole game ends
	 * 
	 * - end of round: continueGame=true 
	 * - end of game:  continueGame=false 
	 **/
	public class EndEvent extends NetworkEvent {

		public static const END_EVENT:String = "end";

		public var continueGame:Boolean;
		
		public function EndEvent(event:ServerMessageEvent) {
			super(END_EVENT);
			
			continueGame = event.parameters[0];
		}

	}
		 
	
}